package com.ruoyi.cfuser.rescue.controller;

import com.ruoyi.cfuser.api.rescue.domain.RescueTask;
import com.ruoyi.cfuser.rescue.service.impl.InitiateRescueServiceImpl;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/rescue")
public class InitiateRescueController {

    @Resource
    private InitiateRescueServiceImpl initiateRescueService;

    @PostMapping("/help")
    public Map<String, Object> filterId(@RequestBody RescueTask rescueTask){
        Map<String, Object> map = initiateRescueService.filterId(rescueTask);
        return map;
    }
}
